import request from '@/utils/request'

const PREFIX = '/warehouse'

/**
 * 分页查询仓库
 */
export function pageWarehouse(params = {}) {
  return request.get(`${PREFIX}/index`, { params })
}

/**
 * 修改仓库
 */
export function updateWarehouse(data = {}) {
  return request.post(`${PREFIX}/edit`, data)
}

/**
 * 删除仓库
 */
export function removeWarehouse(id) {
  return request.post(`${PREFIX}/delete`, { id })
}
